package com.hsogoo.game.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import com.hsogoo.game.event.JoinRoomEvent;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by za-huangsaigang on 2017/12/6.
 */
@Slf4j
@Component
public class JoinRoomListener implements ApplicationListener<JoinRoomEvent> {

    @Override
    public void onApplicationEvent(JoinRoomEvent joinRoomEvent) {
        log.info("收到消息。。。");
        log.info(joinRoomEvent.getName());
    }
}
